<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta charset="utf-8">
    <title>Админка</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link href="/public/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/public/style/style_back.css" rel="stylesheet">
    <script type="text/javascript" src="/public/script/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="/public/bootstrap/js/bootstrap.min.js"></script>
  </head>
  
   <body>
     
     <?php if(isset($data['msg']) and !empty($data['msg'])){?>
        <script type="text/javascript">         
        jQuery(document).ready(function(){
            $('#myModal_msg').modal({
              backdrop: true
            });
            $('#myModal_msg').modal('show')
        });
        </script>
       <!--модальное окно-->
      <div class="modal admin_style" id="myModal_msg" style="display: none;">
        <div class="modal-header">
          <button class="close" data-dismiss="modal">×</button>
          <h3>Сообщение</h3>
        </div>
        <div class="modal-body">
          <p><?=$data['msg']?></p>
        </div>
        <div class="modal-footer">
          <a href="#" class="btn" data-dismiss="modal">Да, я понял</a>
        </div>
      </div>
     <?}?>
     
     <div class="navbar navbar-fixed-top">
      <div class="navbar-inner admin_style" style="">
        <div class="container-fluid">
          
          <a class="brand" href="#">Административный раздел <?=(isset($data['breadcrumbs']) ? $data['breadcrumbs'] : "");?></a>
        
        </div>
      </div>
    </div>
    
    <div class="container-fluid">
      <div class="row-fluid">
        <div class="span3">
          <div class="well sidebar-nav admin_style">
            <ul class="nav nav-list">
              <li class="nav-header">Sidebar</li>
              <li><a href="/admin">Список новостей</a></li>
            </ul>
          </div><!--/.well -->
        </div><!--/span-->
        <div class="span9">
          	<?php include 'application/views/'.$content_view;?>
        </div><!--/span-->
      </div><!--/row-->

      <hr>
     
      <footer>
        <p>&copy; Sergey Bondarenko</p>
      </footer>
    </div>
  </body>
</html>